package com.example.gouwu2;

public class HomeItem {
    private String title;
    private String price;
    private int imageRes; // 图片资源ID

    public HomeItem(String title, String price, int imageRes) {
        this.title = title;
        this.price = price;
        this.imageRes = imageRes;
    }

    // Getter 方法
    public String getTitle() {
        return title;
    }
    public String getPrice() {
        return price;
    }
    public int getImageRes() {
        return imageRes;
    }
}
